from pydantic import BaseModel, Field
from datetime import datetime


class InterfaceStatisticSettings(BaseModel):
    start_time: datetime
    end_time: datetime


class LogFilePathSettings(BaseModel):
    path: str = Field(..., title='日志的路径')


class InterfaceCallFreqSettings(BaseModel):
    start_time: datetime
    end_time: datetime
    periods: int = Field(5, title='将这个时间段分割成几块', description='默认是 5')